package com.igda.tihbms.data;

import android.graphics.Bitmap;

public class Bullet extends GameObject {

	private static final int BULLET_SPEED = 12;

	public Bullet(float posX, float posY, Bitmap spriteBitmap) {
		super(posX, posY, new Sprite(new byte[] { 0 }, spriteBitmap, 1));
	}

	@Override
	public void tick() {
		this.moveY(-BULLET_SPEED);
		if (this.posY < 0) {
			this.dead = true;
		}
	}
}
